<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>继承</title>
    <style>
        div{
            color:red;
            font-size: 90px;
        }
        p{
            color: saddlebrown;
        }
    </style>
</head>
<body>
    <div>
        <!-- p会继承div -->
         <!-- 覆盖和叠加：当子级自己有相同的属性时，子级生效，不同属性则继承父级。 -->
        <p>eeeeeeeee</p>
    </div>
</body>
</html>